package com.cn.zpark.service.impl;

import com.cn.zpark.beans.User;
import com.cn.zpark.dao.IFindUserDao;
import com.cn.zpark.dao.impl.FindUserDaoImpl;
import com.cn.zpark.service.IFindUserService;

import java.util.List;

/**
 * @PackageName: com.cn.zpark.service.impl
 * @ClassName: FindUserServiceImpl
 * @Description: 业务层，调用DAO查数据
 * @author: RZS
 * @date: 2022/4/27  11:39
 */
public class FindUserServiceImpl implements IFindUserService {

    // 定义IFindUserDao对象
    private IFindUserDao userDao = new FindUserDaoImpl();

    @Override
    public List<User> selectUser() {
        // 调用dao查询数据
        List<User> users = userDao.findUser();
        return users;
    }
}
